(define-module (python-howdoi)
#:use-module (guix packages)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages python-web)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages check)
#:use-module (guix utils)
#:use-module (gnu packages python)
#:use-module (guix download)
#:use-module (guix licenses)
#:use-module (guix build-system python))

(define-public python-cachelib
  (package
    (name "python-cachelib")
    (version "0.1.1")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "cachelib" version))
        (sha256
          (base32
            "0vs7nimlbhqy9kjcc90nswkhs3kgl28ag19jssx9qwlcsrkmmsa7"))))
    (build-system python-build-system)
    (home-page "https://github.com/pallets/cachelib")
    (synopsis
      "A collection of cache libraries in the same API interface.")
    (description
      "A collection of cache libraries in the same API interface.")
    (license #|license:bsd-3|# #f)))

(define-public python-howdoi
  (package
    (name "python-howdoi")
    (version "1.2.1")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "howdoi" version))
        (sha256
          (base32
            "1qx35zc9hsibk3mpqfn3almm27w5fh2qrcn386ldhabdc1l2cciv"))))
    (build-system python-build-system)
    (propagated-inputs
      `(("python-appdirs" ,python-appdirs)
        ("python-cachelib" ,python-cachelib)
        ("python-pygments" ,python-pygments)
        ("python-pyquery" ,python-pyquery)
        ("python-requests" ,python-requests)))
    (home-page "https://github.com/gleitz/howdoi")
    (synopsis
      "Instant coding answers via the command line")
    (description
      "Instant coding answers via the command line")
    (license #|license:expat|# #f)))

python-cachelib
python-howdoi
